package com.dong.demo;

public class BOX {
    private double lenth;
    private double width;
    private double heigth;

    public BOX() {
    }

    public BOX(double lenth, double width, double heigth) {
        this.lenth = lenth;
        this.width = width;
        this.heigth = heigth;
    }

    public double getLenth() {
        return lenth;
    }

    public void setLenth(double lenth) {
        this.lenth = lenth;
    }

    public double getWidth() {
        return width;
    }

    public void setWith(double with) {
        this.width = width;
    }

    public double getHeigth() {
        return heigth;
    }

    public void setHeigth(double heigth) {
        this.heigth = heigth;
    }
    public double getV(){
         return lenth*width*heigth;
    }

    @Override
    public String toString() {
        return "BOX{" +
                "lenth=" + lenth +
                ", width=" + width +
                ", heigth=" + heigth +
                '}';
    }
}
